package com.guang.springbootrequestversion.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author liguang
 * @date 2022/5/13 16:06
 */
@Controller
public class LoginController {



    @GetMapping(path = {"/", "/login"})
    public String login() {

        return "login";
    }

    @PostMapping(path = {"/login"})
    public String login(String userName, String password,String email) {
        System.out.println("账号是："+userName);
        System.out.println("密码是："+password);
        return "main";
    }
}
